<%@ page language="java" import="logic.*,java.util.*" %>
<form class="finder" action="FrontController?res=products.jsp" method="post">
<span class="highlight">Busca productos: </span> 
<input type="text" name="name" /> &nbsp; 
<select name="category" >
	<option value="0">Categor&iacute;a...</option>
	<%
	IFinder fd = new Finder();
	List<String> ls = fd.getCategories();
	for(String s: ls){
		%>
		<option value="<%= s %>"><%= s %></option>
		<%
	}
	%>
</select> &nbsp; 
<select name="destiny" >
	<option value="0">Destino beneficios...</option>
	<%
	List<Destination> ld = DestinationList.getInstance().getDestinations();
	for(Destination d: ld){
		%>
		<option value="<%= d.getId() %>"><%= d.getName() %></option>
		<%
	}
	%>
</select> &nbsp; 
<input class="finderbutton" type="submit" name="findbutton" value="Buscar" />
</form>